package ace.module.product.api.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import jakarta.validation.constraints.*;
import jakarta.annotation.Nullable;
import java.io.Serializable;

/**
* 商品通用视频 data transform object.
*
* @author Caspar
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = PmsCommonVideoDto.TABLE_DESC)
public class PmsCommonVideoDto implements Serializable {

  public static final String TABLE_NAME = "pms_common_video";
  public static final String TABLE_DESC = "商品通用视频";
  public static final String ID_COLUMN_NAME = "id";
  public static final String ID_TITLE = "id";
  public static final String ID_DESC = "";
  public static final String PMS_APP_ID_COLUMN_NAME = "pms_app_id";
  public static final String PMS_APP_ID_TITLE = "商品应用id";
  public static final String PMS_APP_ID_DESC = "";
  public static final String OBJECT_TYPE_COLUMN_NAME = "object_type";
  public static final String OBJECT_TYPE_TITLE = "视频类型";
  public static final String OBJECT_TYPE_DESC = " 1-商品主视频";
  public static final String OBJECT_ID_COLUMN_NAME = "object_id";
  public static final String OBJECT_ID_TITLE = "类型对应对象id";
  public static final String OBJECT_ID_DESC = "0=null";
  public static final String OBJECT_PARENT_ID_COLUMN_NAME = "object_parent_id";
  public static final String OBJECT_PARENT_ID_TITLE = "类型对应对象父id";
  public static final String OBJECT_PARENT_ID_DESC = "0=null";
  public static final String VIDEO_COLUMN_NAME = "video";
  public static final String VIDEO_TITLE = "原图url";
  public static final String VIDEO_DESC = "";
  public static final String SORT_COLUMN_NAME = "sort";
  public static final String SORT_TITLE = "排序";
  public static final String SORT_DESC = "";
  public static final String DELETE_FLAG_COLUMN_NAME = "delete_flag";
  public static final String DELETE_FLAG_TITLE = "删除标识";
  public static final String DELETE_FLAG_DESC = "0-未删除";
  public static final String CREATE_TIME_COLUMN_NAME = "create_time";
  public static final String CREATE_TIME_TITLE = "创建时间";
  public static final String CREATE_TIME_DESC = "单位-毫秒";
  public static final String UPDATE_TIME_COLUMN_NAME = "update_time";
  public static final String UPDATE_TIME_TITLE = "更新时间";
  public static final String UPDATE_TIME_DESC = "单位-毫秒";
  public static final String ROW_VERSION_COLUMN_NAME = "row_version";
  public static final String ROW_VERSION_TITLE = "版本号和乐观锁";
  public static final String ROW_VERSION_DESC = "";

  @Schema(title = ID_TITLE, description = ID_DESC)
  private Long id;

  @Schema(title = PMS_APP_ID_TITLE, description = PMS_APP_ID_DESC)
  private Long pmsAppId;

  @Schema(title = OBJECT_TYPE_TITLE, description = OBJECT_TYPE_DESC)
  private Integer objectType;

  @Schema(title = OBJECT_ID_TITLE, description = OBJECT_ID_DESC)
  private Long objectId;

  @Schema(title = OBJECT_PARENT_ID_TITLE, description = OBJECT_PARENT_ID_DESC)
  private Long objectParentId;

  @Schema(title = VIDEO_TITLE, description = VIDEO_DESC)
  private String video;

  @Schema(title = SORT_TITLE, description = SORT_DESC)
  private Long sort;

  @Schema(title = DELETE_FLAG_TITLE, description = DELETE_FLAG_DESC)
  private Long deleteFlag;

  @Schema(title = CREATE_TIME_TITLE, description = CREATE_TIME_DESC)
  private Long createTime;

  @Schema(title = UPDATE_TIME_TITLE, description = UPDATE_TIME_DESC)
  private Long updateTime;

  @Schema(title = ROW_VERSION_TITLE, description = ROW_VERSION_DESC)
  private Long rowVersion;

}